﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace LTSMZ.life.UI.Controllers
{
    public class ProductListController : Controller
    {
        //
        // GET: /ProductList/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult ShowProduct(string name)
        {
            
            int size = 20;
            LTSMZ.life.BLL.ProductBll bll = new LTSMZ.life.BLL.ProductBll();
            LTSMZ.life.Model.ProductPage page=bll.ShowProductPage(1, size, name);
            return Json(page, JsonRequestBehavior.AllowGet);
        }
        

    }
}
